<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <div class="panel panel-default panel-intro">
        <div class="panel-heading">
            <ul class="nav nav-tabs">
                <li class="active">
                    <a href="#goods" data-toggle="tab">{:__('商品信息')}</a>
                </li>
                <li>
                    <a href="#menu" data-toggle="tab">{:__('商品详情')}</a>
                </li>

            </ul>
        </div>

        <div class="panel-body">
            <div id="myTabContent" class="tab-content">
                <div class="tab-pane fade active in" id="goods">
                    <div class="row">
                        <div class="col-xs-12">
                            <input type="hidden" name="commandtype" value="goods"/>
                            <div class="form-group" style="margin-top: -10px;">
                                <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
                                <div class="col-xs-12 col-sm-8">
                                    <input id="c-name" class="form-control" name="row[name]" type="text"
                                           value="{$row.name|htmlentities}">
                                </div>
                            </div>
                            <div class="form-group" style="margin-top: -10px;">
                                <label class="control-label col-xs-12 col-sm-2">{:__('Partnumber')}:</label>
                                <div class="col-xs-12 col-sm-8">
                                    <input id="c-partnumber" class="form-control" name="row[partnumber]" type="text"
                                           value="{$row.partnumber|htmlentities}">
                                </div>
                            </div>
                            <div class="form-group" style="margin-top: -10px;">
                                <label class="control-label col-xs-12 col-sm-2">{:__('Replace')}:</label>
                                <div class="col-xs-12 col-sm-8">
                                    <input id="c-replacenum" class="form-control" name="row[replacenum]" type="text"
                                           value="{$row.replacenum|htmlentities}">
                                </div>
                            </div>
                            <div class="form-group" style="margin-top: -10px;">
                                <label class="control-label col-xs-12 col-sm-2">{:__('Manufacturer')}:</label>
                                <div class="col-xs-12 col-sm-8">
                                    <input id="c-manufacturer" class="form-control" name="row[manufacturer]" type="text"
                                           value="{$row.manufacturer|htmlentities}">
                                </div>
                            </div>
                            <div class="form-group" style="margin-top: -10px;">
                                <label class="control-label col-xs-12 col-sm-2">{:__('Attribute')}:</label>
                                <div class="col-xs-12 col-sm-8">
                                    <div class="radio">
                                        {foreach name="attributeList" item="vo"}
                                        <label for="row[attribute]-{$key}"><input id="row[attribute]-{$key}"
                                                                                name="row[attribute]" type="radio"
                                                                                value="{$key}" {in name="key"
                                                                                value="$row.attribute" }checked{/in} />
                                            {$vo}
                                        </label>
                                        {/foreach}
                                    </div>
                                </div>
                            </div>
                            <div class="form-group" style="margin-top: -10px;">
                                <label class="control-label col-xs-12 col-sm-2">{:__('Brand_id')}:</label>
                                <div class="col-xs-12 col-sm-8">
                                    <input id="c-brand_id" data-source="goods/brand/selectpage" class="form-control selectpage" data-multiple="true" name="row[brand_id]" type="text"
                                           value="{$row.brand_id}">
                                </div>
                            </div>
                            <div class="form-group" style="margin-top: -10px;">
                                <label class="control-label col-xs-12 col-sm-2">{:__('Category_id')}:</label>
                                <div class="col-xs-12 col-sm-8">
                                    <style>
                                        .category_box {
                                            padding-top: 20px;
                                        }

                                        .category_item {
                                            width: 200px;
                                            padding: 10px;
                                            height: 300px;
                                            border: 1px solid #cccccc;
                                            /*border-left: none;*/
                                            float: left;
                                        }

                                        .category_select_item span {
                                            color: red;
                                            cursor: pointer;
                                        }

                                        .category_input_box {
                                            width: 180px;
                                        }

                                        .category_li_box {
                                            height: 240px;
                                            overflow-y: scroll;
                                        }

                                        .category_li_item {
                                            display: flex;
                                            align-items: center;
                                            justify-content: space-between;
                                        }

                                        .category_toselect {
                                            color: #000000;
                                            width: 40px;
                                        }

                                        .category_tonext {
                                            display: -webkit-box;
                                            -webkit-box-orient: vertical;
                                            -webkit-line-clamp: 1;
                                            overflow: hidden;
                                            width: 110px;
                                            text-align: left;
                                        }

                                        .category_next {
                                            width: 20px;
                                        }

                                        .category_toselect, .category_tonext {
                                            cursor: pointer;
                                        }
                                    </style>
                                    <input id="c-category_id" name="row[category_id]" type="hidden" value="{$row.categoryId}">
                                    <div class="category_select_box" style="display: none;">
                                        {foreach $row.category_id as $v}
                                            {if condition= "$v.id != '' "}
                                                <div class="category_select_item" data-id="{$v.id}">{$v.title} <span>删除</span></div>
                                            {/if}
                                        {/foreach}
                                    </div>
                                    <div class="category_box">
                                        <div class="category_item" data-pid="0" data-id="0" data-title="">
                                            <div class="category_input_box" >
                                                <input type="text" class="category_input form-control">
                                            </div>
                                            <div class="category_li_box">
                                                {foreach $categoryList as $v}
                                                <div class="category_li_item" data-id="{$v.id}">
                                                    {if condition="$v.level == 3" }
                                                    <div class="category_toselect">选择</div>
                                                    {/if}
                                                    <div class="category_tonext" data-child="{$v.child}">{$v.name}</div>
                                                    <div class="category_next"> {$v.child>0?'>':''}</div>
                                                </div>
                                                {/foreach}
                                            </div>
                                        </div>
                                    </div>

                                </div>
                            </div>

                            <div class="form-group" style="margin-top: -10px;">
                                <label class="control-label col-xs-12 col-sm-2">{:__('Models_id')}:</label>
                                <div class="col-xs-12 col-sm-8">
                                    <style>
                                        .models_box {
                                            padding-top: 20px;
                                        }

                                        .models_item {
                                            width: 156px;
                                            padding: 10px;
                                            height: 300px;
                                            border: 1px solid #cccccc;
                                            /*border-left: none;*/
                                            float: left;
                                        }

                                        .models_select_item span {
                                            color: red;
                                            cursor: pointer;
                                        }

                                        .input_box {
                                            width: 133px;
                                        }

                                        .models_li_box {
                                            height: 240px;
                                            overflow-y: scroll;
                                        }

                                        .models_li_item {
                                            display: flex;
                                            align-items: center;
                                            justify-content: space-between;
                                        }

                                        .toselect {
                                            color: #000000;
                                            width: 40px;
                                        }

                                        .tonext {
                                            display: -webkit-box;
                                            -webkit-box-orient: vertical;
                                            -webkit-line-clamp: 1;
                                            overflow: hidden;
                                            width: 68px;
                                            text-align: left;
                                        }

                                        .next {
                                            width: 20px;
                                        }

                                        .toselect, .tonext {
                                            cursor: pointer;
                                        }
                                    </style>
                                    <input id="c-models_id" name="row[models_id]" type="hidden" value="{$row.modelId}">

                                    <div class="models_box">
                                        <div class="models_item" data-pid="0" data-id="0" data-title="">
                                            <div class="input_box">
                                                <input type="text" class="models_input form-control">
                                            </div>
                                            <div class="models_li_box">
                                                <div>
                                                    <div data-child="0" style="cursor: pointer">
                                                        <span class="tonextty">通用</span>
                                                        <span class="cancel">取消</span>
                                                    </div>
                                                </div>
                                                {foreach $toplist as $v}
                                                    <div class="models_li_item" data-id="{$v.id}">
                                                        <div class="toselect toselect_to{$v.id}" style="width: 1px"><input type="checkbox" id="check{$v.id}"
                                                                      {foreach name="$row.models_id" item="vo"}
                                                                      {in name="$vo.id" value="$v.id" }checked{/in}
                                                                      {/foreach}></div>
                                                        <div class="tonext tonextto{$v.id}" style="font-size: 4px;" data-child="{$v.child}">{$v.mergename}</div>
                                                        <div class="next"> {$v.child>0?'>':''}</div>
                                                    </div>
                                                {/foreach}
                                            </div>
                                        </div>
                                    </div>
                                    <dvi class="models_select_box" style="display: none">
                                        {foreach $row.models_id as $v}
                                            <div class="col-md-2 models_select_item models_select{$v.id}" data-id="{$v.id}">{$v.title} <span>删除</span></div>
                                        {/foreach}
                                    </dvi>
                                </div>
                            </div>

                            <div class="form-group" style="margin-top: -10px;">
                                <div class="col-xs-12 col-sm-8">
                                    <a href="javascript:;" class="btn btn-sm btn-success btn-categorynone"><i class="fa fa-plus">{:__('添加分类')}</i></a></a>
                                    <a href="javascript:;" class="btn btn-sm btn-primary btn-categoryhidn"><i class="fa fa-">{:__('取消分类')}</i></a></a>
                                    <input id="c-category_status" class="form-control hidden" name="row[category_status]" type="text" value="{$row.category_status}" >
                                </div>
                            </div>
                            <div class="form-group" id="categoryh"
                            {if condition = "$row.category_status == 0"}
                                 style="display: none; ">
                            {else /}
                                style ="display: block;">
                            {/if}
                                <div class="form-group" style="margin-top: -10px;">
                                    <label class="control-label col-xs-12 col-sm-2">{:__('Category_id')}:</label>
                                    <div class="col-xs-12 col-sm-8">
                                        <style>
                                            .category_box1{
                                                padding-top: 20px;
                                            }
                                            .category_item1 {
                                                width: 200px;
                                                padding: 10px;
                                                height: 300px;
                                                border: 1px solid #cccccc;
                                                /*border-left: none;*/
                                                float: left;
                                            }
                                            .category_select_item1 span{
                                                color: red;
                                                cursor: pointer;
                                            }
                                            .category_input_box1 {
                                                width: 180px;
                                            }
                                            .category_li_box1{
                                                height: 240px;
                                                overflow-y: scroll;
                                            }
                                            .category_li_item1{
                                                display: flex;
                                                align-items: center;
                                                justify-content: space-between;
                                            }
                                            .category_toselect1{
                                                color: #000000;
                                                width: 40px;
                                            }
                                            .category_tonext1{
                                                display: -webkit-box;
                                                -webkit-box-orient: vertical;
                                                /*-webkit-line-clamp: 1;*/
                                                overflow: hidden;
                                                width: 110px;
                                                text-align: left;
                                            }
                                            .category_next1{
                                                width: 20px;
                                            }
                                            .category_toselect1,.category_tonext1{
                                                cursor: pointer;
                                            }
                                        </style>
                                        <input id="c-category_id1" name="row[category_ids]" type="hidden" value="{$row.categoryIds}">
                                        <dvi class="category_select_box1" style="display: none;">
                                            {foreach $row.category_ids as $v}
                                             <div class="category_select_item1" data-id="{$v.id}">{$v.title} <span>删除</span></div>
                                            {/foreach}
                                        </dvi>
                                        <div class="category_box1">
                                            <div class="category_item1" data-pid="0" data-id="0" data-title="">
                                                <div class="category_input_box1">
                                                    <input type="text" class="category_input1 form-control">
                                                </div>
                                                <div class="category_li_box1">
                                                    {foreach $categoryList as $v}
                                                    <div class="category_li_item1" data-id="{$v.id}">
                                                        {if condition="$v.level == 3" }
                                                        <div class="category_toselect1">选择</div>
                                                        {/if}
                                                        <div class="category_tonext1" data-child="{$v.child}"> {$v.name} </div>
                                                        <div class="category_next1"> {$v.child>0?'>':''} </div>
                                                    </div>
                                                    {/foreach}
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="form-group" style="margin-top: -10px;">
                                    <label class="control-label col-xs-12 col-sm-2">{:__('Models_id')}:</label>
                                    <div class="col-xs-12 col-sm-8">
                                        <style>
                                            .models_box1{
                                                padding-top: 20px;
                                            }
                                            .models_item1 {
                                                width: 156px;
                                                padding: 10px;
                                                height: 300px;
                                                border: 1px solid #cccccc;
                                                /*border-left: none;*/
                                                float: left;
                                            }
                                            .models_select_item1 span{
                                                color: red;
                                                cursor: pointer;
                                            }

                                            .input_box1 {
                                                width: 133px;
                                            }
                                            .models_li_box1{
                                                height: 240px;
                                                overflow-y: scroll;
                                            }
                                            .models_li_item1{
                                                display: flex;
                                                align-items: center;
                                                justify-content: space-between;
                                            }
                                            .toselect1{
                                                color: #000000;
                                                width: 40px;
                                            }
                                            .tonext1{
                                                display: -webkit-box;
                                                -webkit-box-orient: vertical;
                                                /*-webkit-line-clamp: 1;*/
                                                overflow: hidden;
                                                width: 65px;
                                                text-align: left;
                                            }
                                            .next1{
                                                width: 20px;
                                            }
                                            .toselect1,.tonext1{
                                                cursor: pointer;
                                            }
                                        </style>
                                        <input id="c-models_id1" name="row[models_ids]" type="hidden" value="{$row.modelsIds}">

                                        <div class="models_box1">
                                            <div class="models_item1" data-pid="0" data-id="0" data-title="">
                                                <div class="input_box1">
                                                    <input type="text" class="models_input1 form-control">
                                                </div>
                                                <div class="models_li_box1">
                                                    <div>
                                                        <div data-child="0" style="cursor: pointer">
                                                            <span class="tonexttys">通用</span>
                                                            <span class="cancels">取消</span>
                                                        </div>
                                                    </div>
                                                    {foreach $toplist as $v}
                                                    <div class="models_li_item1" data-id="{$v.id}">
                                                        <div class="toselect1 toselect_to1{$v.id}" style="width: 1px;">
                                                            <input type="checkbox" id="checke{$v.id}"
                                                                   {foreach name="$row.models_ids" item="vo"}
                                                                   {in name="$vo.id" value="$v.id" }
                                                                        checked
                                                                   {/in}
                                                            {/foreach}>
                                                            </div>
                                                        <div class="tonext1  tonextto1{$v.id}" style="font-size: 4px;" data-child="{$v.child}">{$v.mergename}</div>
                                                        <div class="next1"> {$v.child>0?'>':''} </div>
                                                    </div>
                                                    {/foreach}
                                                </div>
                                            </div>
                                        </div>

                                        <dvi class="models_select_box1" style="display: none;">
                                            {foreach $row.models_ids as $v}
                                                <div class="col-md-2 models_select_item1 models_select1{$v.id}" data-id="{$v.id}">{$v.title} <span>删除</span></div>
                                            {/foreach}
                                        </dvi>
                                    </div>
                                </div>
                            </div>



                            <div class="form-group" style="margin-top: -10px;">
                                <label class="control-label col-xs-12 col-sm-2">{:__('Name_keyword')}:</label>
                                <div class="col-xs-12 col-sm-8">
                                    <input id="c-name_keyword" class="form-control" name="row[name_keyword]" type="text"
                                           value="{$row.name_keyword|htmlentities}">
                                </div>
                            </div>
                            <div class="form-group" style="margin-top: -10px;">
                                <label class="control-label col-xs-12 col-sm-2">{:__('Parameter')}:</label>
                                <div class="col-xs-12 col-sm-8">
                                    <dl class="fieldlist" data-name="row[parameter]">
                                        <dd>
                                            <ins>名称</ins>
                                            <ins>值</ins>
                                        </dd>
                                        <dd><a href="javascript:;" class="btn btn-sm btn-success btn-append"><i
                                                class="fa fa-plus"></i> {:__('Append')}</a></dd>
                                        <textarea name="row[parameter]" class="form-control hide" cols="30" rows="5">{$row.parameter|htmlentities}</textarea>
                                    </dl>
                                </div>
                            </div>

                            <div class="form-group">
                                <div class="form-group col-xs-5 col-sm-3" style="margin-top: -10px;">
                                    <label class="control-label col-xs-5 col-sm-5">{:__('Ordinaryprice')}:</label>
                                    <div class="col-xs-12 col-sm-7">
                                        <input id="c-ordinaryprice" data-rule="required" class="form-control" step="0.01"
                                               name="row[ordinaryprice]" type="number"
                                               value="{$row.ordinaryprice|htmlentities}">
                                    </div>
                                </div>
                                <div class="form-group col-xs-5 col-sm-3" style="margin-top: -10px;">
                                    <label class="control-label col-xs-5 col-sm-5">{:__('Haveprice')}:</label>
                                    <div class="col-xs-12 col-sm-7">
                                        <input id="c-haveprice" data-rule="required" class="form-control" step="0.01"
                                               name="row[haveprice]" type="number" value="{$row.haveprice|htmlentities}">
                                    </div>
                                </div>
                                <div class="form-group col-xs-5 col-sm-3" style="margin-top: -10px;">
                                    <label class="control-label col-xs-5 col-sm-5">{:__('Agentprice')}:</label>
                                    <div class="col-xs-12 col-sm-7">
                                        <input id="c-agentprice" data-rule="required" class="form-control" step="0.01"
                                               name="row[agentprice]" type="number" value="{$row.agentprice|htmlentities}">
                                    </div>
                                </div>
                                <div class="form-group col-xs-5 col-sm-3" style="margin-top: -10px;">
                                    <label class="control-label col-xs-5 col-xs-5">{:__('Integral_num')}:</label>
                                    <div class="col-xs-12 col-sm-7">
                                        <input id="c-integral_num" data-rule="required" class="form-control"
                                               name="row[integral_num]" type="number"
                                               value="{$row.integral_num|htmlentities}">
                                    </div>
                                </div>
                            </div>
                            <div class="form-group" style="margin-top: -10px;">
                                <label class="control-label col-xs-12 col-sm-2">{:__('Shuff_image')}:</label>
                                <div class="col-xs-12 col-sm-8">
                                    <div class="input-group">
                                        <input id="c-shuff_image" class="form-control" size="50" name="row[shuff_image]"
                                               type="text" value="{$row.shuff_image|htmlentities}">
                                        <div class="input-group-addon no-border no-padding">
                                            <span><button type="button" id="faupload-shuff_image"
                                                          class="btn btn-danger faupload" data-input-id="c-shuff_image"
                                                          data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp"
                                                          data-multiple="true" data-preview-id="p-shuff_image"><i
                                                    class="fa fa-upload"></i> {:__('Upload')}</button></span>
                                            <span><button type="button" id="fachoose-shuff_image"
                                                          class="btn btn-primary fachoose" data-input-id="c-shuff_image"
                                                          data-mimetype="image/*" data-multiple="true"><i
                                                    class="fa fa-list"></i> {:__('Choose')}</button></span>
                                        </div>
                                        <span class="msg-box n-right" for="c-shuff_image"></span>
                                    </div>
                                    <ul class="row list-inline faupload-preview" id="p-shuff_image"></ul>
                                </div>
                            </div>
                            <div class="form-group" style="margin-top: -10px;">
                                <label class="control-label col-xs-12 col-sm-2">{:__('Goods_video')}:</label>
                                <div class="col-xs-12 col-sm-8">
                                    <div class="input-group">
                                        <input id="c-goods_video" class="form-control" size="50" name="row[goods_video]"
                                               type="text" value="{$row.goods_video|htmlentities}">
                                        <div class="input-group-addon no-border no-padding">
                                            <span><button type="button" id="faupload-goods_video"
                                                          class="btn btn-danger faupload" data-input-id="c-goods_video"
                                                          data-mimetype="mp4,mp3,avi,flv,wmv" data-multiple="false"
                                                          data-preview-id="p-goods_video"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                                            <span><button type="button" id="fachoose-goods_video"
                                                          class="btn btn-primary fachoose" data-input-id="c-goods_video"
                                                          data-mimetype="mp4,mp3,avi,flv,wmv" data-multiple="false"><i
                                                    class="fa fa-list"></i> {:__('Choose')}</button></span>
                                        </div>
                                        <span class="msg-box n-right" for="c-goods_video"></span>
                                    </div>
                                    <ul class="row list-inline faupload-preview" id="p-goods_video"></ul>
                                </div>
                            </div>
                            <div class="form-group">
                                <div class="form-group col-xs-4 col-sm-3" style="margin-top: -10px;">
                                    <label class="control-label col-xs-4 col-sm-4">{:__('Freight')}:</label>
                                    <div class="col-xs-8 col-sm-8">
                                        <div class="radio">
                                            {foreach name="freightList" item="vo"}
                                            <label for="row[freight]-{$key}"><input id="row[freight]-{$key}"
                                                                                    name="row[freight]" type="radio"
                                                                                    value="{$key}" {in name="key"
                                                                                    value="$row.freight" }checked{/in} />
                                                {$vo}
                                            </label>
                                            {/foreach}
                                        </div>
                                    </div>
                                </div>
                                <div class="form-group col-xs-4 col-sm-3" style="margin-top: -10px;" >
                                    <label class="control-label col-xs-2 col-sm-4">{:__('Status')}:</label>
                                    <div class="col-xs-10 col-sm-8">
                                        <div class="radio">
                                            {foreach name="statusList" item="vo"}
                                            <label for="row[status]-{$key}"><input id="row[status]-{$key}"
                                                                                   name="row[status]" type="radio"
                                                                                   value="{$key}" {in name="key"
                                                                                   value="$row.status" }checked{/in} />
                                                {$vo}</label>
                                            {/foreach}
                                        </div>
                                    </div>
                                </div>
                                <div class="form-group col-xs-4 col-sm-3" style="margin-top: -10px;">
                                    <label class="control-label col-xs-2 col-sm-4">{:__('Is_new')}:</label>
                                    <div class="col-xs-12 col-sm-8">
                                        <div class="radio">
                                            {foreach name="isNewList" item="vo"}
                                            <label for="row[is_new]-{$key}"><input id="row[is_new]-{$key}"
                                                                                   name="row[is_new]" type="radio"
                                                                                   value="{$key}" {in name="key"
                                                                                   value="$row.is_new" }checked{/in} />
                                                {$vo}</label>
                                            {/foreach}
                                        </div>

                                    </div>
                                </div>
                                <div class="form-group col-xs-4 col-sm-3" style="margin-top: -10px;">
                                    <label class="control-label col-xs-2 col-sm-4">{:__('Is_hot')}:</label>
                                    <div class="col-xs-12 col-sm-8">
                                        <div class="radio">
                                            {foreach name="isHotList" item="vo"}
                                            <label for="row[is_hot]-{$key}"><input id="row[is_hot]-{$key}"
                                                                                   name="row[is_hot]" type="radio"
                                                                                   value="{$key}" {in name="key"
                                                                                   value="$row.is_hot" }checked{/in} />
                                                {$vo}</label>
                                            {/foreach}
                                        </div>
                                    </div>
                                </div>
                            </div>
                                <div class="form-group  col-xs-5 col-sm-6">
                                    <label class="control-label col-xs-8 col-sm-3">{:__('Spec_type')}:</label>
                                    <div class="col-xs-6 col-sm-4">
                                        <select id="c-spec_type" data-rule="required" class="form-control selectpicker"
                                                name="row[spec_type]">
                                            {foreach name="specTypeList" item="vo"}
                                            <option value="{$key}" {in name="key" value="$row.spec_type" }selected{/in}>{$vo}</option>
                                            {/foreach}
                                        </select>
                                    </div>
                                </div>
                                <div class="form-group" data-favisible="spec_type=1">
                                    <div class="col-xs-12 col-sm-8">

                                        <table class="table fieldlist" id="attr_json1" data-name="row[attr_json]"
                                               data-template="row[attr_json]tpl">
                                            <tr>
                                                <td width="120">{:__('attr_json name')}</td>
                                                <td>{:__('attr_json values')}(多个用[回车]隔开)</td>
                                                <td width="90">{:__('Operate')}1</td>
                                            </tr>
                                            <tr>
                                                <td colspan="3">
                                                    <a href="javascript:;" class="btn btn-sm btn-success btn-append"><i
                                                            class="fa fa-plus"></i> {:__('Append')}</a>
                                                    <a href="javascript:;" class="btn btn-sm btn-success btn-create"><i
                                                            class="fa fa-plus"></i> {:__('生成规格')}</a>
                                                    <textarea name="row[attr_json]" id="attr_json" class="form-control hide"
                                                              cols="30" rows="5">{$row.attr_json|htmlentities}</textarea>
                                                </td>
                                            </tr>
                                        </table>
                                        <script type="text/html" id="row[attr_json]tpl">
                                            <tr>
                                                <td><input type="text" name="<%=name%>[<%=index%>][name]" class="form-control"
                                                           value="<%=row.name%>"/></td>
                                                <td><input type="text" name="<%=name%>[<%=index%>][values]" class="form-control"
                                                           data-role='tagsinput' id="tagser" data-tagsinput-options='{"trimValue":true}'
                                                           value="<%=row.values%>"/></td>
                                                <td width="90">
                                            <span class="btn btn-sm btn-danger btn-remove"><i
                                                    class="fa fa-times"></i></span>
                                                </td>


                                            </tr>
                                        </script>

                                    </div>
                                </div>

                                <div class="form-group" data-favisible="spec_type=1">
                                    <div class="col-xs-12 col-sm-8">

                                        <table class="table fieldlist" data-name="row[goods_sku]"
                                               data-template="row[goods_sku]tpl">
                                            <tr>
                                                <td>{:__('goods_sku spec')}</td>
                                                <td width="90">{:__('goods_sku price')}</td>
                                                <td width="90">{:__('goods_sku haveprice')}</td>
                                                <td width="90">{:__('goods_sku agentprice')}</td>
                                                <td>{:__('goods_sku image')}</td>
                                            </tr>
                                            <tr>
                                                <td colspan="5">
                                                    <textarea name="row[goods_sku]" id="goods_sku" class="form-control hide"
                                                              cols="30" rows="5">{:json_encode($row.sku)}</textarea>
                                                </td>
                                            </tr>
                                        </table>
                                        <script type="text/html" id="row[goods_sku]tpl">
                                            <tr>
                                                <td>
                                                    <input type="hidden" name="<%=name%>[<%=index%>][id]" class="form-control"
                                                           value="<%=row.id%>"/>
                                                    <input type="hidden" name="<%=name%>[<%=index%>][spec]" class="form-control"
                                                           value="<%=row.spec%>"/>
                                                    <input type="text" name="<%=name%>[<%=index%>][spec_value_str]"
                                                           class="form-control" style="width:300px" value="<%=row.spec_value_str%>"/>
                                                </td>
                                                <td><input type="number" name="<%=name%>[<%=index%>][ordinaryprice]"
                                                           class="form-control" style="width:100px" value="<%=row.ordinaryprice%>"/></td>
                                                <td><input type="number" name="<%=name%>[<%=index%>][haveprice]"
                                                           class="form-control" style="width:100px" value="<%=row.haveprice%>"/></td>
                                                <td><input type="number" name="<%=name%>[<%=index%>][agentprice]"
                                                           class="form-control" style="width:100px" value="<%=row.agentprice%>"/></td>
                                                <td>
                                                    <div class="input-group">
                                                        <input id="gsku_<%=index%>" class="form-control" size="50"
                                                               name="<%=name%>[<%=index%>][image]" type="text" style="width:100px"
                                                               value="<%=row.image%>">
                                                        <div class="input-group-addon no-border no-padding">
                                                    <span><button type="button" id="faupload<%=index%>"
                                                                  class="btn btn-danger faupload"
                                                                  data-input-id="gsku_<%=index%>"
                                                                  data-mimetype="image/*" data-multiple="false"
                                                                  data-preview-id="p-<%=index%>"><i
                                                            class="fa fa-upload"></i> {:__('Upload')}</button></span>
                                                            <span><button type="button" id="fachoose<%=index%>"
                                                                          class="btn btn-primary fachoose"
                                                                          data-input-id="gsku_<%=index%>"
                                                                          data-mimetype="image/*" data-multiple="false"><i
                                                                    class="fa fa-list"></i> {:__('Choose')}</button></span>
                                                        </div>
                                                        <span class="msg-box n-right" for="c-<%=index%>"></span>
                                                    </div>
                                                    <ul class="row list-inline faupload-preview" id="p-<%=index%>">
                                                    </ul>
                                                </td>
                                            </tr>
                                        </script>

                                    </div>
                                </div>
                        </div>
                    </div>
                </div>

                <div class="tab-pane fade" id="menu">
                    <div class="row">
                        <div class="col-xs-12">
                            <input type="hidden" name="commandtype" value="menu"/>

                            <div class="form-group">
                                <label class="control-label col-xs-12 col-sm-2">{:__('Details_content')}:</label>
                                <div class="col-xs-12 col-sm-8">
                                    <textarea id="c-details_content" class="form-control editor" rows="5"
                                              name="row[details_content]"
                                              cols="50">{$row.details_content|htmlentities}</textarea>
                                </div>
                            </div>

                            <div class="col-xs-12">
                                <input type="hidden" name="commandtype" value="menu"/>
                                <div class="form-group">
                                    <label class="control-label col-xs-12 col-sm-2">{:__('Installation')}:</label>
                                    <div class="col-xs-12 col-sm-8">
                                        <textarea id="c-installation" class="form-control editor" rows="5"
                                                  name="row[installation]"
                                                  cols="50">{$row.installation|htmlentities}</textarea>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
        </div>
    </div>

</form>
